import { useCookies } from '@vueuse/integrations/useCookies'

const TokenKey = "token"
const TokenKey2 = "tabList"
const cookie = useCookies()

// 获取token
export function getToken() {
    return cookie.get(TokenKey)
}

//设置token
export function setToken(token) {
    return cookie.set(TokenKey, token)
}

//清楚token
export function removeToken() {

    cookie.remove(TokenKey2)
    return cookie.remove(TokenKey)
}

